<div class="menuItems index">
    <h2><?php __('Menu Items'); ?></h2>

    <?php
    //echo $form->create(null, array('url'=>'/waiters/takeOrder'));
    echo $form->create(null, array('url' => '/waiters/ajxOrder'));
    ?>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th class="actions"><?php __('Gimme this'); ?></th>

            <th><?php echo $this->Paginator->sort('item_name'); ?></th>
            <th><?php echo $this->Paginator->sort('item_desc'); ?></th>
            <th><?php echo $this->Paginator->sort('item_base_price'); ?></th>


        </tr>
<?php
    $i = 0;
    foreach ($menuItems as $menuItem):
        $class = null;
        if ($i++ % 2 == 0) {
            $class = ' class="altrow"';
        }
?>
        <tr<?php echo $class; ?> align="center">
            <td class="actions">
<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $menuItem['MenuItem']['id']));  ?>
                <?php //echo $this->Html->link(__('Edit', true), array('action' => 'edit', $menuItem['MenuItem']['id']));  ?>
                <?php //echo $this->Html->link(__('Delete', true), array('action' => 'delete', $menuItem['MenuItem']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $menuItem['MenuItem']['id']));  ?>
                <?php
                $cb_menu_Id = $menuItem['MenuItem']['id'];
                ?>
                <?php echo $form->checkbox($cb_menu_Id); ?>

            </td>

            <td>
<?php
                $m_item = $menuItem['MenuItem']['item_name'];
                echo $ajax->link(
                        $m_item,
                        array('controller' => 'waiters', 'action' => 'takeOrder_2', $cb_menu_Id),
                        array('update' => 'right_nav_container_ajax')
                        
                );
?>



            </td>
            <td><?php echo $menuItem['MenuItem']['item_desc']; ?>&nbsp;</td>
            <td><?php echo $menuItem['MenuItem']['item_base_price']; ?>&nbsp;</td>

        </tr>
<?php endforeach; ?>
    </table>

<?php
                //echo $form->hidden("order_token", array("value" => $uniqueOrderToken));
                echo $ajax->submit('Add to Order', array('url' => '/waiters/ajxOrder', 'update' => 'right_nav_container_ajax'));
                echo $form->end();
//echo $form->end('Place an Order');
?>
            </div>

<?php
//$ajax->
                //              echo $form->create(null, array('url' => '/waiters/ajxOrder')); //,'post',array('update'=>'asynch_ajx'));
?>
<div id="asynch_ajx">

</div>



<div class="ajaxfrm">

</div>

